//
//  MarsHolidayService.h
//  HolidayService
//
//  Created by 안종덕 on 11. 3. 18.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WebService/HolidayService2.h"

@interface MarsHolidayService : NSObject {
    HolidayService2Soap12Binding *binding;
    
    HolidayService2_CountryCode *countryCode;
    HolidayService2_HolidayCode *holidayCode;
    HolidayService2_Holiday *holiday;
    
    NSNumber *yearOfHoliday;
    NSNumber *monthOfHoliday;
    
    NSDate *startDate;
    NSDate *endDate;
    
    NSMutableArray *countryCodes;                                       // Collection of HolidayService2_CountryCode object
    NSMutableArray *holidayCodesOfCountry;                         // Collection of HolidayService2_HolidayCode object
    NSDate *dateOfCountryHolidayCodeYear;
    NSMutableArray *holidaysOfCountryStartDateEndDate;      // Collection of HolidayService2_Holiday object
    NSMutableArray *holidaysOfCountryYear;                         // Collection of HolidayService2_Holiday object
    NSMutableArray *holidaysOfCountryYearMonth;                // Collection of HolidayService2_Holiday object
}

-(NSInteger)getIntegerValueFromDateByFormat:(NSDate *)aDate stringFormat:(NSString *)aFormat;
-(NSDate *)getFirstDateOfYearFromDate:(NSDate *)aDate;
-(NSDate *)getLastDateOfYearFromDate:(NSDate *)aDate;

@property (retain) HolidayService2_CountryCode *countryCode;
@property (retain) HolidayService2_HolidayCode *holidayCode;
@property (retain) HolidayService2_Holiday *holiday;

@property (assign) NSNumber *yearOfHoliday;
@property (assign) NSNumber *monthOfHoliday;
@property (retain) NSDate *startDate;
@property (retain) NSDate *endDate;

@property (readonly) NSMutableArray *countryCodes;
@property (readonly) NSMutableArray *holidayCodesOfCountry;
@property (readonly) NSMutableArray *holidaysOfCountryStartDateEndDate;
@property (readonly) NSMutableArray *holidaysOfCountryYear;
@property (readonly) NSMutableArray *holidaysOfCountryYearMonth;

@end
